package com.qf.controller;


import com.qf.entity.Order;
import com.qf.entity.R;
import com.qf.service.OrderService;
import org.springframework.aop.scope.ScopedProxyUtils;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

/**
 * 订单表(Order)表控制层
 *
 * @author makejava
 * @since 2023-04-07 19:54:49
 */
@RestController
@RequestMapping("/order")
public class OrderController {
    /**
     * 服务对象
     */
    @Resource
    private OrderService orderService;


    /**
     * 根据y用户id查询订单信息
     * @param uid
     * @return
     */
    @RequestMapping("/queryorderbyid")
    public R queryOrder(Integer uid){
        System.out.println("接收请求");
        List<Order> orderlist = orderService.QueryOrderById(uid);

        return R.succ(orderlist);
    }

}

